package com.golxen.framework.activity.dao;


import com.golxen.framework.activity.dao.entity.ActivityInfo;
import com.golxen.framework.activity.eActivityType;
import com.golxen.framework.event.condition.dao.entity.ActivityConditionInfo;

import java.util.List;
import java.util.Map;

public class ActivityBussiness {

	public static Map<Integer, ActivityInfo> getAllRunningActivityInfoMap(){
		return new ActivityDaoImpl().getAllRunningActivityInfoMap();
	}

	public static ActivityInfo getActivityInfoByActivityId(int activityId){
		return new ActivityDaoImpl().getActivityInfoByActivityId(activityId);
	}

	public static Map<Integer, ActivityInfo> getActivityInfoMap(long serverId) {
		return new ActivityDaoImpl().getActivityInfoMap(serverId);
	}

	public static void getActivityConditionInfoMap(Map<Integer, Map<Integer, List<ActivityConditionInfo>>> activityConditionInfoTypeMap,
												   Map<Integer, List<ActivityConditionInfo>> activityConditionInfoMap, List<Integer> activityIdList) {
		new ActivityDaoImpl().getActivityConditionInfoMap(activityConditionInfoTypeMap, activityConditionInfoMap, activityIdList);
	}


	public static Map<Integer, ActivityInfo> getActivityInfoMap(eActivityType activityType, String nowStr, long crossServerId) {
		return new ActivityDaoImpl().getOpenActivityInfoMap(activityType, nowStr, crossServerId);
	}

	public static Map<Integer, ActivityInfo> getActivityInfoMapByType(eActivityType activityType) {
		return new ActivityDaoImpl().getActivityInfoMapByType(activityType);
	}
	public static Map<Integer, ActivityInfo> getActivityInfoMap(eActivityType activityType, String nowStr) {
		return new ActivityDaoImpl().getOpenActivityInfoMap(activityType, nowStr);
	}

}
